package com.pyue.eam.regi.module.message.mapper;

import com.pyue.eam.admin.api.entity.regi.CqTaskLibEntity;
import com.pyue.eam.common.data.datascope.EamBaseMapper;
import com.pyue.eam.regi.module.message.entity.CqUserTaskMsgEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CqUserTaskMsgMapper extends EamBaseMapper<CqUserTaskMsgEntity> {

    List<CqUserTaskMsgEntity> getTaskMes(@Param("userId") Long userId, @Param("type") String type);

    void overTaskMsgStatus(@Param("taskId") Long taskId, @Param("userId") Long userId);

    List<CqTaskLibEntity> getTaskTodoCount(@Param("taskIdList") List<Long> taskIdList, @Param("userId") Long userId);

}
